package duotaitest1;

public class Test {
    public static void main(String[] args) {
        Dog d=new Dog("黄色",2);
        Cat c=new Cat("黑色",2);
        Person p=new Person("老王",45);


        p.keeppet(d,"骨头");

        p.keeppet(c,"鱼");

    }
}
